//
//  PictureCollectionCell.m
//  Zhiche-Carriage
//
//  Created by LeeBruce on 16/6/18.
//  Copyright © 2016年 LeeBruce. All rights reserved.
//

#import "PictureCollectionCell.h"

@implementation PictureCollectionCell

-(id)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        [self initSubViews];
        
    }
    
    return self;
}


-(void)initSubViews

{
   
    
    
    self.ImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 0, self.contentView.frame.size.width - 20, self.contentView.frame.size.height - 20)];
    self.ImageView.layer.cornerRadius = 5;
    self.ImageView.layer.masksToBounds = YES;
    self.ImageView.userInteractionEnabled = YES;
    [self.contentView addSubview:self.ImageView];
    
    
    
    self.label = [[UILabel alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.ImageView.frame), self.contentView.frame.size.width, 20)];
    [self.contentView addSubview:self.label];
    
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.backgroundColor = [UIColor clearColor];
    self.label.font = Font(11);
}


@end
